package concole;

import static org.junit.Assert.*;


import org.junit.Before;
import org.junit.Test;

import remoteService.ServerHelper;

public class UserTest {
	User adminUser;
	User teacherUser;
	User studentUser;
	User user=new User();
	ServerHelper serverHelper=new ServerHelper();

	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testProcessRemoteLogin() {
		adminUser = new Administrator();
		teacherUser = new Teacher("001", "001", true);
		studentUser = new Student("121250079", "121250079", true);
		//String replyString=user.processRemoteLogin(adminUser, "LoginAccounts.txt");
		//String replyString2=user.processRemoteLogin(teacherUser,"teacherAccounts.txt");
		String replyString3=user.processRemoteLogin(studentUser, "studentAccounts.txt");
		System.out.println(replyString3);
		//assertEquals(replyString, "admin 11111111");
		//assertEquals(replyString2,"001 001");
		assertEquals(replyString3, "121250079 121250079");
	}

}
